package cn.netbox.spring.service.impl;

import cn.netbox.spring.service.LandLord;
import org.springframework.stereotype.Service;

/**
 * description:
 * date: 2021/12/1 16:08
 * author: Alex
 * version: 1.0
 */
@Service("fangdong")
public class landLordProxy implements LandLord {

    private LandLord target = new LandLordImpl2();
    @Override
    public void chuzu() {
        System.out.println("带你看房");
        target.chuzu();
    }

    @Override
    public void getMoney() {
        System.out.println("收中介费");
        target.getMoney();
    }
}
